package cate.game.train.awakenfairy.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.awakenfairy.AwakenFairy;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "觉醒灵器数据更新 の 返回")
public class AwakenFairyUpdateResp implements MsgOutput {
    @NoteField(value = "觉醒灵器")
    public AwakenFairy awakenFairy;

    @NoteField(value = "英雄ID", detail = "如果是背包里灵器的就没有这个字段")
    public String heroUid;

    @NoteField(value = "部位", detail = "如果是背包里灵器的就没有这个字段")
    public byte pos;

    public AwakenFairyUpdateResp(){

    }

    public AwakenFairyUpdateResp(AwakenFairy awakenFairy, String heroUid, byte pos) {
        this.awakenFairy = awakenFairy;
        this.heroUid = heroUid;
        this.pos = pos;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.AWAKEN_FAIRY_UPDATE_RESP;
    }
}
